package com.spdd.mt.biz.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.spdd.mt.common.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.util.Date;

/**
 * <p>
 * 充值预下单表
 * </p>
 *
 * @author shanfeilong
 * @since 2025-04-02
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("mt_recharge_order_pre")
public class MtRechargeOrderPreEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /** 美团商⼾编码 */
    @TableField("merch_no")
    private String merchNo;

    /** ⼿机号 */
    @TableField("account")
    private String account;

    /** 商品编码 */
    @TableField("product_code")
    private String productCode;

    /** 平台业务预下单订单号 */
    @TableField("pre_order_no")
    private String preOrderNo;

    /** 供应商返回码 */
    @TableField("supplier_return_code")
    private String supplierReturnCode;

    /** 供应商返回信息 */
    @TableField("supplier_return_message")
    private String supplierReturnMessage;

    /** 返回码 success fail */
    @TableField("return_status")
    private String returnStatus;

    /** 返回信息 */
    @TableField("return_message")
    private String returnMessage;

    /** 返回码 */
    @TableField("return_code")
    private String returnCode;

    /** 重查次数 */
    @TableField("retry_times")
    private Integer retryTimes;

    /** 最近一次重查时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("last_retry_time")
    private Date lastRetryTime;

    /** 创建时间 */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /** 更新时间 */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /** 版本号 */
    @TableField("version")
    private Integer version;

}
